if /I "%1" == "-h" (
	call :usage
	exit /B 1
)

if exist "!j_current_dir!\jenny.cmake" (
	echo Already initialized, jenny.cmake exists.
	exit /B 1
) else (
	copy !j_jenny_root_dir!\template\jenny.cmake !j_current_dir!\jenny.cmake
)

exit /B !errorlevel!

:usage
	echo jenny init
	echo 		init current project. it'll create jenny.cmake in current directory.
	exit /B 1